package com.sz.mapper;

import com.sz.model.OnlineBankCard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Component
public interface OnlineBankCardMapper extends Mapper<OnlineBankCard> {

    public List<OnlineBankCard> getAllBankCard(int obid);

    public OnlineBankCard getBankCard(String card);

    //添加银行卡
    public int insertBankCart(OnlineBankCard onlineBankCard);

    //查询余额
    public Long selectMoney(String ba);

    //修改银行余额，转账业务
    public int updateOnlineBankMoney(@Param("oba") String oba, @Param("tradingAmount") Long tradingAmount);

}